/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package springconfiguracion;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.net.MalformedURLException;
import modelo.Palindromo;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.InputStreamResource;
import org.springframework.core.io.UrlResource;
/**
 *
 * @author odeen
 */
public class MainCliente {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
            //Con ApplicationContext
            ApplicationContext aplicacion = new ClassPathXmlApplicationContext("rmiCliente.xml");
            Palindromo pal2 = (Palindromo) aplicacion.getBean("palindromoRMI");
            System.out.println(pal2.ejecutar());
    }
}
